//created by: Joanna Tan
//modified by Timothy(08/08/12)

Ext.define('MajorProjectSenchaTouch.model.NewArrivals' ,{
    extend: 'Ext.data.Model',
    xtype: 'NewArrivalsModel',
    requires:[
      'Ext.data.identifier.Uuid'  
    ],
    config:{
        identifier:'uuid',
        fields: [
            {name: 'id', type: 'int'}, 
            {name: 'setentry', type: 'int'},
            {name: 'docnum', type: 'string'},
            {name: 'bktitle', type: 'string'},
            {name: 'author',type: 'string'},
            {name: 'img', type: 'string'},
            {name: 'callnumber', type: 'string'},
            {name: 'year', type: 'string'},
            {name: 'bkformat', type: 'string'},
            {name: 'ebooklink', type: 'string'},
            
            //Additional fields for details
            {name: 'edition', type: 'string'},
            {name: 'publisher', type: 'string'},
            {name: 'desc', type: 'string'},
            {name: 'isbn13', type: 'string'},
            {name: 'isbn13_l', type: 'string'},
            {name: 'issn', type: 'string'},     //REM:Modifiy Details_Model
            {name: 'isbn10', type: 'string'},
            {name: 'summary', type: 'string'},
            {name: 'frequency', type: 'string'},
            {name: 'eBkLink', type: 'string'},
            {name: 'img_link', type: 'string'}
        
        //{name: 'title', type: 'string'}, //bktitle
        //{name: 'author', type: 'string'},//author(no change)
        //{name: 'callNum', type: 'string'},//callnumber
        //{name: 'format', type: 'string'},//bkformat
        //{name: 'doc_number', type: 'string'}  //docnum
    



//'id'
        
        //Unique: docnum
     //   'setentry', 'docnum','bktitle', 'author', 'img', 'callnumber', 'year', 'bkformat'
//        'id','setentry', 'docnum','bktitle', 'author', 'img', 'callnumber', 'year', 'bkformat'

    ]
    }
})
   //    fields: ['set_number', 'no_records', 'no_entries']
  //    'btitle', 'author', 'img', 'callnumber', 'year', 'format']